import Request from '../utils/request'
/**
 * 首页-总局 star
 */
// 数据预览-总局
export function getTaskCount (params: any = {}) {
  return Request({
    url: '/api/app/taskinfo/getTaskCount',
    method: 'GET',
    params
  })
}

// 上报信息
export function getReportCount (params: any = {}) {
  return Request({
    url: '/api/app/platformReportInfo/getReportCount',
    method: 'GET',
    params
  })
}

// 企业及时回复率
export function getReplyConut (params: any = {}) {
  return Request({
    url: '/api/app/tasktargetinfo/getReplyConut',
    method: 'GET',
    params
  })
}

// 系统用户
export function getSysuserCount (params: any = {}) {
  return Request({
    url: '/api/app/user/getSysuserCount',
    method: 'GET',
    params
  })
}

// 指令统计
export function getInstructionsConut (params: any = {}) {
  return Request({
    url: '/api/app/tasktargetinfo/getInstructionsConut',
    method: 'GET',
    params
  })
}
/**
 * 首页-总局 end
 */

/**
 * 首页 star
 */
// 数据预览
export function getCompanyTaskCount (params: any) {
  return Request({
    url: '/api/app/taskinfo/getCompanyTaskCount',
    method: 'GET',
    params
  })
}

// 公告
export function getNotice (params: any) {
  return Request({
    url: '/api/app/policyinfo/getNotice',
    method: 'GET',
    params
  })
}

// 任务待办列表
export function taskInfoList (params: any) {
  return Request({
    url: '/api/app/taskinfo/page',
    method: 'GET',
    params
  })
}

// 上报待办列表
export function reportList (params: any) {
  return Request({
    url: '/api/app/taskinfo/reportList',
    method: 'GET',
    params
  })
}

// 合规提示列表
export function complianceList (params: any) {
  return Request({
    url: '/api/app/taskinfo/ComplianceList',
    method: 'GET',
    params
  })
}

// 任务下发与主动上报统计
export function getTaskReportCount (params: any) {
  return Request({
    url: '/api/app/taskinfo/getTaskReportCount',
    method: 'GET',
    params
  })
}
/**
 * 首页 end
 */